Notificação de infração webhook (MED)
info
📘 Para saber mais sobre webhooks em nossa API, siga o link abaixo:
Quando uma Notificação de infração é criada, a melhor maneira de receber essas informações é usando o webhook `INFRACTION_NOTIFICATION_CREATED``.
Esta é a maneira mais simples de configurar um webhook INFRACTION_NOTIFICATION_CREATED:
Headers
| Nome | Descrição |
|---|---|
| x-delbank-api-key | Obrigatório. Chave de API |
| x-delfinance-account-id | Obrigatório. O número da conta Delfinance. |
Corpo da requisição
{
"eventType": "INFRACTION_NOTIFICATION_CREATED",
"url": "https://example.com.br/webhooks/v1/infractionNotification", // Add your own URL here
"authorization": "NONE,
"authorizationScheme": "NONE"
}
Assim que uma Notificação de infração for criada, aqui está o que você receberá no URL registrado:
{
"id": "00287f1e-aa85-452c-9ca6-d08d810c571c",
"endToEndId": "E38224857202501201735276EqueqSVM",
"reason": "RETURN_REQUEST",
"status": "PENDING",
"debitedParticipant": {
"ispb": "21018182",
"name": "BOLETOBANCÁRIO.COM TECNOLOGIA DE PAGAMENTOS LTDA."
},
"creditedParticipant": {
"ispb": "38224857",
"name": "DELBANK"
},
"infractionDetails": "01",
"analysisDetails": null,
"createdAt": "2022-04-07T10:25:32.793Z",
"updatedAt": "2025-02-13T16:35:13.907Z"
}
Aqui estão os atributos que são passados pelo webhook INFRACTION_NOTIFICATION_CREATED:
| Nome | Tipo | Descrição |
|---|---|---|
| id | string | Id da notificação de infração |
| endToEndId | string | endToEndId da transação da notificação de infração |
| reason | enum | Razão da notificação de infração, Dominios: Fraude FRAUD,Solicitação de Devolução RETURN_REQUEST,Cancelamento da Devolução RETURN_CANCELLATION |
| type | enum | Golpe/Estelionato: SCAM_FRAUD,Transação não autorizada: UNAUTHORIZED_TRANSACTION,Crime de coerção: COERCION_CRIME,Acesso e autorização fraudulenta: FRAUDULENT_ACCESS_AUTHORIZATION,Outros: OTHER,Desconhecido: UNKNOWN |
| status | enum | Pendente PENDING,Cancelado CANCELED,Aceito ACCEPTED,Rejeitado REJECTED |
| debitedParticipant | object | Objeto contendo informações da instituição onde ocorreu o débito da notificação de infração |
| debitedParticipant.isbp | string | ISPB da instituição |
| debitedParticipant.name | string | Nome da instituição |
| creditedParticipant | object | Objeto contendo informações da instituição onde ocorreu o crédito da notificação de infração |
| creditedParticipant.isbp | string | ISPB da instituição |
| creditedParticipant.name | string | Nome da instituição |
| infractionDetails | string | Descrição da infração |
| analysisDetails | string | Detalhes sobre a análise da notificação de infração |
| createdAt | date | Data de criação |
| updatedAt | date | Data de atualização |